package com.jumi.microservice.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jumi.microservice.entity.CommonGroup;
import com.jumi.microservice.entity.JmUserTeam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 要挑客户管理团队
 * @since 2020-07-14
 */
public interface IJmUserTeamService extends IService<JmUserTeam> {

    Integer getSumChiNum(QueryWrapper wrapper);

    Page getMyTeam(Page page, QueryWrapper wrapper, Integer teamUid,boolean onlyDirect);

    List<JmUserTeam> getMySupers(Integer uid);

    /**
     * 根据邀请类型获得邀请人数
     * @return
     */
    List<CommonGroup> getTeamNumsByInviterType(QueryWrapper wrapper);
}
